const options = {
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false
}

// 采购计划列表
export const purchaseOption = {
  column: [
    {
      label: '采购单号',
      prop: 'wareHousingNo',
      width: 160
    },
    {
      label: '提交日期',
      prop: 'createTime',
      sortable: true,
      width: 135
    },
    {
      label: '供应商',
      prop: 'supplierName'
    },
    {
      label: '药品类型',
      prop: 'drugType',
      dicData: [
        { label: '西药及中成药', value: 7 },
        { label: '饮片', value: 1 },
        { label: '颗粒剂', value: 2 }
      ]
    },
    {
      label: '采购药品数量',
      prop: 'warehousingQuantity'
    },
    {
      label: '进货总价',
      prop: 'orderTotal',
      sortable: true,
      slot: true
    },
    {
      label: '制单人',
      prop: 'createUserName'
    },
    {
      label: '订单状态',
      prop: 'status',
      slot: true
    },
    {
      label: '审核人',
      prop: 'checkUserName'
    }
  ],
  ...options
}

// 入库列表
export const wareOption = {
  column: [
    {
      label: '入库单号',
      prop: 'wareHousingNo',
      width: 160
    },
    {
      label: '入库方式',
      prop: 'wareHousingType',
      slot: true
    },
    {
      label: '药品类型',
      prop: 'drugType',
      dicData: [
        { label: '西药及中成药', value: 7 },
        { label: '饮片', value: 1 },
        { label: '颗粒剂', value: 2 }
      ]
    },
    {
      label: '供应商',
      prop: 'supplierName'
    },
    {
      label: '入库药品数量',
      prop: 'warehousingQuantity'
    },
    {
      label: '成本总价',
      prop: 'orderTotal',
      sortable: true,
      slot: true
    },
    {
      label: '入库日期',
      sortable: true,
      prop: 'warehousingTime',
      slot: true,
      width: 135
    },
    {
      label: '付款状态',
      prop: 'payStatus',
      dicData: [
        { label: '未付款', value: 0 },
        { label: '已付款', value: 1 }
      ]
    },
    {
      label: '入库人',
      prop: 'warehousingUserName'
    },
    {
      label: '订单状态',
      prop: 'status',
      slot: true
    },
    {
      label: '备注',
      prop: 'remark'
    }
  ],
  ...options
}
